package com.xiang.community.enums;

/**
 * @author qixiangLi
 * @Date 2021/10/16
 */
public enum TokenValidTimeEnum {
    /**
     * 一天
     */
    ONE_DAY(60 * 60 * 24),
    /**
     * 一周
     */
    ONE_WEEK(60 * 60 * 24 * 7);

    private long seconds;

    TokenValidTimeEnum(long seconds) {
        this.seconds = seconds;
    }

    public long getSeconds() {
        return seconds;
    }
}
